import { get, post } from "@/utils/request";

export async function add(body: any) {
  const res = await post("/project/add", body);
  return res.json();
}

export async function remove(id: number) {
  const res = await post("/project/remove", { id });
  return res.json();
}

export async function modify(body: any) {
  const res = await post("/project/modify", body);
  return res.json();
}

export async function query() {
  const res = await get("/project/query");
  return res.json();
}
